
#ifndef PREZENTERSERVER_H
#define PREZENTERSERVER_H
#include <list>
#include "Message.h"
#include "types.h"

//Komuniakcja pkt 2.1
class CordinatorAddresMsg : public Message
{
public:
	CordinatorAddresMsg () : Message (CORDINATOR_ADDRES) {};
};

class CordinatorAddresRet : public Message
{
public:
	CordinatorAddresRet() : Message (CORDINATOR_ADDRES_RET) {};
	void serialize(std::stringstream &) ;
	void deSerialize(std::stringstream & );
	CordinatorInfo cordinatorInfo;
};

//Komunikacja pkt 2.2

class NumberOfTasksMsg : public Message
{
public:
	NumberOfTasksMsg() : Message(NUMBER_OF_TASKS) {};
};



class NumberOfTasksRet : public Message
{
public:
	NumberOfTasksRet() : Message(NUMBER_OF_TASKS_RET) {};
	void serialize(std::stringstream &);
	void deSerialize(std::stringstream & );
	int listSize;
	std::list<ServerFullInfo> serverList;
	
};





#endif